<template>
    <div class="mineContainer">
        <div class="avatar">
            <img v-lazy="userInfo.profile.avatarUrl + '?param=150y150'" />
        </div>
        <div class="info">
            <p class="name">{{ userInfo.profile.nickname }}</p>
            <svg class="icon myicon" aria-hidden="true">
                <use xlink:href="#icon-caiyi"></use>
            </svg>
            <span class="lvText">等级:{{ userInfo.level }}</span>
            <svg class="icon myicon" aria-hidden="true">
                <use xlink:href="#icon-huiyuan"></use>
            </svg>
            <span class="lvText">播放数:{{ userInfo.listenSongs }}</span>
        </div>
        <div class="bg">
            <img v-lazy="userInfo.profile.avatarUrl + '?param=150y150'" />
        </div>
    </div>
</template>

<script>

export default {
    props: ['userInfo']
}
</script>

<style scoped>
.mineContainer {
    height: 176px;
    overflow: hidden;
    position: relative;
}

.bg {
    width: 120%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    filter: blur(30px);
    z-index: 999;
}

.bg>img {
    width: 100%;
}

.avatar {
    width: 104px;
    height: 104px;
    position: absolute;
    z-index: 1000;
    top: 50%;
    left: 25px;
    transform: translateY(-50%);
    overflow: hidden;
}

.avatar>img {
    width: 100%;
}

.info {
    position: relative;
    z-index: 1001;
    left: 140px;
    top: 50%;
    transform: translateY(-50%);
    text-align: left;
}

.name {
    width: 135px;
    color: white;
    padding: 0;
    margin: 0;
    font-size: 14px;
    line-height: 2;
}

.myicon {
    width: 1.2em;
    height: 1.2em;
}

.lvText {
    color: white;
    font-size: 12px;
    position: relative;
    top: -5px;
    left: 3px;
    margin-right: 12px;
}</style>